package com.fr.data.util.function;

public class CountFunction extends AbstractDataFunction
{
  private int countResult;

  public CountFunction()
  {
    reset();
  }

  public void reset()
  {
    this.countResult = 0;
  }

  public void addData(Object paramObject)
  {
    this.countResult += 1;
  }

  public Object getResult()
  {
    return new Integer(this.countResult);
  }

  public String getFormula()
  {
    return "count";
  }
}